import request from '@/utils/request'
// 获取用户频道
export const userChannels = () => {
  return request({
    url: '/v1_0/user/channels'
  })
}
// 获取推荐文章列表
export const articles = params => {
  return request({
    url: '/v1_0/articles',
    params
  })
}
// 获取所有频道
export const channels = () => {
  return request({
    url: '/v1_0/channels'
  })
}
// 存储用户频道
export const userChannelsPut = data => {
  return request({
    url: '/v1_0/user/channels',
    // restFul规范：  增 post  删 delete  改(全量：put  部分:patch)  查 get
    method: 'put',
    data
  })
}
